<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="inc/taglibs.jsp" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <%@ include file="inc/meta.jsp" %>
    <meta name="description" content="">
    <meta name="author" content="">
    <title>反馈问题详情</title>
    <%@ include file="inc/css.jsp" %>
</head>
<style type="text/css">
    .topDiv {
        margin-top: 7px;
    }
</style>

<body>
<div id="posts" class="wrapper">

    <%@ include file="inc/nav.jsp" %>

    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">反馈问题管理</h1>
                <h4 style="margin-left: 10px;">——查看反馈问题</h4>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <!-- /.panel-heading -->
                    <div class="panel-body">
                        <form class="form-horizontal" role="form">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">问题分类:</label>

                                <div class="col-sm-8 topDiv">
                                    ${question.type.name}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">记录日期:</label>
                                <div class="col-sm-8 topDiv">
                                    ${question.recordDate}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">区域/工段:</label>

                                <div class="col-sm-9 topDiv">
                                    <c:if test="${null != areaOne}">${areaOne.name} --> </c:if>
                                    <c:if test="${null != areaTwo}">${areaTwo.name} --> </c:if>
                                    <c:if test="${null != areaThree}">${areaThree.name} --> </c:if>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">设备/设施作业描述:</label>
                                <div class="col-sm-9 topDiv">
                                    ${question.descriptionOne}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">图片说明:</label>

                                <div class="col-sm-10 topDiv">
                                    <div style="float: left;margin-bottom: 30px;" id="lastImageDiv"></div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">风险描述:</label>
                                <div class="col-sm-9 topDiv">
                                    ${question.descriptionTwo}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">发现区域得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreOne}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">专业程度得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreTwo}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">关键程度得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreThree}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">事故可能性得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreFour}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">法规要求得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreFive}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">计算得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreSix}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">实际得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreSeven}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">反馈人姓名:</label>

                                <div class="col-sm-3 topDiv">
                                    ${question.nameOne}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">反馈人所属部门:</label>

                                <div class="col-sm-3 topDiv">
                                    ${question.sectionOne}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">临时措施描述:</label>
                                <div class="col-sm-9 topDiv">
                                    ${question.descriptionThree}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">临时措施判别得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreEight}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">临时措施计算得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreNine}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">临时措施实际得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreTen}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">临时措施责任人姓名:</label>

                                <div class="col-sm-3 topDiv">
                                    ${question.nameTwo}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">临时措施责任人所属部门:</label>

                                <div class="col-sm-3 topDiv">
                                    ${question.sectionTwo}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">临时措施计划完成日期:</label>
                                <div class="col-sm-8 topDiv">
                                    ${question.planDateOne}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">临时措施实际关闭日期:</label>
                                <div class="col-sm-8 topDiv">
                                    ${question.actualDateOne}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">纠正措施描述:</label>
                                <div class="col-sm-9 topDiv">
                                    ${question.descriptionFour}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">纠正措施判别得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreEleven}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">纠正措施计算得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreTwelve}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">纠正措施实际得分:</label>
                                <div class="col-sm-2 topDiv">
                                    ${question.scoreThirteen}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">纠正措施责任人姓名:</label>

                                <div class="col-sm-3 topDiv">
                                    ${question.nameThree}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">纠正措施责任人所属部门:</label>

                                <div class="col-sm-3 topDiv">
                                    ${question.sectionThree}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">纠正措施计划完成日期:</label>
                                <div class="col-sm-8 topDiv">
                                    ${question.planDateTwo}
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">纠正措施实际关闭日期:</label>
                                <div class="col-sm-8 topDiv">
                                    ${question.actualDateTwo}
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-sm-12" style="text-align: center">
                                    <a href="admin/question/index" class="btn btn-primary" role="button">返回</a>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- /.panel-body -->

                    <div id="tempDiv" style="display:none;float: left; height: 210px;width: 200px;margin-right:6px; z-index: 0;margin-bottom: 15px;">
                        <img src="" style="height: 200px;width: 200px; z-index: 1;"/>
                    </div>

                </div>
                <!-- /.panel -->
            </div>
        </div>


    </div>
    <!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->

<%@ include file="inc/footer.jsp" %>

</body>
<script type="text/javascript">
    var _questionInfo = {
        v: {
            id: "_questionInfo",
            list: [],
            dTable: null
        },
        fn: {
            init: function () {
                _questionInfo.fn.getSerImages();
            },
            getSerImages: function () {
                var imgList = ${imageList };

                $.each(imgList, function (i, item) {
                    if (null != item) {
                        _questionInfo.fn.insertImage(item.url);
                    } else {
                        $('#lastImageDiv').html('暂无');
                    }
                });
            },
            insertImage: function (path) {
                var tempDiv = $("#tempDiv").clone();
                tempDiv.prop('id', '');
                tempDiv.css("display", "block");
                tempDiv.children(":first").prop("src", path);
                tempDiv.insertBefore("#lastImageDiv");
            }
        }
    }

    $(document).ready(function () {
        _questionInfo.fn.init();
    });

</script>

</html>